package com.chinasofti;

import java.util.Scanner;

public class Demo03 {
    public static boolean isEvenNumber(int num) {
        if(num%2==0){
            System.out.println("偶数");
        }else{
            System.out.println("奇数");
        }
        return true;
    }
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数，判断奇偶");
        int i = sc.nextInt();
        boolean num = isEvenNumber(i);
        System.out.println(num);
    }
}
